\hypertarget{classrts_1_1units_1_1_unit}{
\section{rts.units.Unit Class Reference}
\label{classrts_1_1units_1_1_unit}\index{rts::units::Unit@{rts::units::Unit}}
}


Read access to a unit.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classrts_1_1units_1_1_unit_a267c78c7dfd7d74b67ce034c0fc8c6d5}{Unit} (\hyperlink{classrts_1_1units_1_1_unit_stats}{UnitStats} \_\-stats)
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_aaeda2c87f2ab709828f8593fc07fddbd}{hasAction} ()
\item 
void \hyperlink{classrts_1_1units_1_1_unit_a1aa5b9fa8983b9217d2b041a4b653dcd}{setAction} (\hyperlink{classrts_1_1units_1_1_unit_action}{UnitAction} act)
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_a7312b3ee155cdf38be11905fc351575c}{lastActionSucceeded} ()
\item 
ArrayList$<$ \hyperlink{classrts_1_1units_1_1_unit_action}{UnitAction} $>$ \hyperlink{classrts_1_1units_1_1_unit_af7617f54e1094aff238e955158f91206}{getActions} ()
\item 
\hyperlink{classrts_1_1units_1_1_unit_action}{UnitAction} \hyperlink{classrts_1_1units_1_1_unit_a42a36553506fc532417968ab52ca15d3}{getAction} ()
\item 
long \hyperlink{classrts_1_1units_1_1_unit_acaec6e776056737f21174d11a0987674}{getID} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a241c1a38b4fd501aa2977231410bec94}{getPlayer} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a3076c442cd97017417c90ee38345b3ef}{getX} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a3a3e1c681e1c6836c641390cf4d5d8de}{getY} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_abc9559c1a14741ad337016fe12aafdf8}{getHP} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_acfc48c8bcfd637513353789ee76ff14e}{getMaxHP} ()
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_aa76c7f9a2fb734436c938b566939aa7b}{isWorker} ()
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_a42f54aefc0fd60fb198a0ccf2297833f}{isFlying} ()
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_a8f4c4986ae18671c0bbf409187d53f71}{isResources} ()
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_a8134378c251e0b7b5cb4f42c187c1287}{isBuilding} ()
\item 
boolean \hyperlink{classrts_1_1units_1_1_unit_a12018d814677d2c760df1ecddf498f08}{isStockpile} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_aa41ddb4c79b9e7c498284ebcedac7076}{getResources} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a6da5a902c31651ceda2aa42c63ab445c}{getResourcesType} ()
\item 
String \hyperlink{classrts_1_1units_1_1_unit_a14599f15b7b0651bffc8a320fc6aaca8}{getLabel} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a2aa7164089d7d5df304bdc297de909f9}{getVision} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a93ce4d05cbcd72975e0d58d9adf44d64}{getAttackRange} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a87a87fa5cb38f6807b11ec72d9bbc44f}{getAttackMin} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a1db19a8c285bdb94e785e306050e717e}{getAttackMax} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a11d3028f183139348bffdd90f8c72dae}{getMoveSpeed} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a4de9d0b362005c2a92c6a8e0c905b02a}{getAttackSpeed} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a2ae62e62845c92ffc7dc65c6af18358a}{getBuildSpeed} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a433c2cd844c8b13c4c4c663b35b258ee}{getHarvestSpeed} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a8ae1eba5cf3d093583ba8c9178bf6392}{getHarvestAmount} ()
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_a932871d3f1e1279f4beb6137ec35317b}{getCost} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a148c333285ad3bac9395819a0f5ac49c}{getCost} (int resource\_\-type)
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_a9c529a8483ffd40dd478e8759e4a99d3}{getProduce} ()
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_af554d22a135f4f618106975230a992dc}{getUnitUpgrades} ()
\item 
ArrayList$<$ Integer $>$ \hyperlink{classrts_1_1units_1_1_unit_a5095e195078c42e918942cacdab4287e}{getBuildingUpgrades} ()
\item 
int \hyperlink{classrts_1_1units_1_1_unit_a2b36e6f5c3f55da95b80544a8062f793}{getType} ()
\item 
\hyperlink{classrts_1_1units_1_1_unit}{Unit} \hyperlink{classrts_1_1units_1_1_unit_a94fb7fbb888df278a3321c478d272e9f}{copy} ()
\item 
\hyperlink{classrts_1_1units_1_1_unit_stats}{UnitStats} \hyperlink{classrts_1_1units_1_1_unit_aa6443a4f37416f33ef942c18e6622361}{copyStats} ()
\item 
void \hyperlink{classrts_1_1units_1_1_unit_afa4ae1a79bcf87a92341a8162e593060}{seen\_\-dead} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classrts_1_1units_1_1_unit_stats}{UnitStats} \hyperlink{classrts_1_1units_1_1_unit_a7ea973d00bcfb63bf412a795ca996b5e}{stats}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Read access to a unit. 

\begin{DoxyAuthor}{Author}
Jeff Bernard 
\end{DoxyAuthor}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{classrts_1_1units_1_1_unit_a267c78c7dfd7d74b67ce034c0fc8c6d5}{
\index{rts::units::Unit@{rts::units::Unit}!Unit@{Unit}}
\index{Unit@{Unit}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{Unit}]{\setlength{\rightskip}{0pt plus 5cm}rts.units.Unit.Unit (
\begin{DoxyParamCaption}
\item[{{\bf UnitStats}}]{\_\-stats}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a267c78c7dfd7d74b67ce034c0fc8c6d5}


\subsection{Member Function Documentation}
\hypertarget{classrts_1_1units_1_1_unit_a94fb7fbb888df278a3321c478d272e9f}{
\index{rts::units::Unit@{rts::units::Unit}!copy@{copy}}
\index{copy@{copy}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{copy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Unit} rts.units.Unit.copy (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a94fb7fbb888df278a3321c478d272e9f}
\hypertarget{classrts_1_1units_1_1_unit_aa6443a4f37416f33ef942c18e6622361}{
\index{rts::units::Unit@{rts::units::Unit}!copyStats@{copyStats}}
\index{copyStats@{copyStats}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{copyStats}]{\setlength{\rightskip}{0pt plus 5cm}{\bf UnitStats} rts.units.Unit.copyStats (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_aa6443a4f37416f33ef942c18e6622361}
\hypertarget{classrts_1_1units_1_1_unit_a42a36553506fc532417968ab52ca15d3}{
\index{rts::units::Unit@{rts::units::Unit}!getAction@{getAction}}
\index{getAction@{getAction}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getAction}]{\setlength{\rightskip}{0pt plus 5cm}{\bf UnitAction} rts.units.Unit.getAction (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a42a36553506fc532417968ab52ca15d3}
Returns the unit's current action \begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_af7617f54e1094aff238e955158f91206}{
\index{rts::units::Unit@{rts::units::Unit}!getActions@{getActions}}
\index{getActions@{getActions}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getActions}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<${\bf UnitAction}$>$ rts.units.Unit.getActions (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_af7617f54e1094aff238e955158f91206}
Returns a list of legal actions for this unit \begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_a1db19a8c285bdb94e785e306050e717e}{
\index{rts::units::Unit@{rts::units::Unit}!getAttackMax@{getAttackMax}}
\index{getAttackMax@{getAttackMax}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getAttackMax}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getAttackMax (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a1db19a8c285bdb94e785e306050e717e}
\hypertarget{classrts_1_1units_1_1_unit_a87a87fa5cb38f6807b11ec72d9bbc44f}{
\index{rts::units::Unit@{rts::units::Unit}!getAttackMin@{getAttackMin}}
\index{getAttackMin@{getAttackMin}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getAttackMin}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getAttackMin (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a87a87fa5cb38f6807b11ec72d9bbc44f}
\hypertarget{classrts_1_1units_1_1_unit_a93ce4d05cbcd72975e0d58d9adf44d64}{
\index{rts::units::Unit@{rts::units::Unit}!getAttackRange@{getAttackRange}}
\index{getAttackRange@{getAttackRange}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getAttackRange}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getAttackRange (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a93ce4d05cbcd72975e0d58d9adf44d64}
\hypertarget{classrts_1_1units_1_1_unit_a4de9d0b362005c2a92c6a8e0c905b02a}{
\index{rts::units::Unit@{rts::units::Unit}!getAttackSpeed@{getAttackSpeed}}
\index{getAttackSpeed@{getAttackSpeed}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getAttackSpeed}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getAttackSpeed (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a4de9d0b362005c2a92c6a8e0c905b02a}
\hypertarget{classrts_1_1units_1_1_unit_a5095e195078c42e918942cacdab4287e}{
\index{rts::units::Unit@{rts::units::Unit}!getBuildingUpgrades@{getBuildingUpgrades}}
\index{getBuildingUpgrades@{getBuildingUpgrades}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getBuildingUpgrades}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ rts.units.Unit.getBuildingUpgrades (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a5095e195078c42e918942cacdab4287e}
\hypertarget{classrts_1_1units_1_1_unit_a2ae62e62845c92ffc7dc65c6af18358a}{
\index{rts::units::Unit@{rts::units::Unit}!getBuildSpeed@{getBuildSpeed}}
\index{getBuildSpeed@{getBuildSpeed}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getBuildSpeed}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getBuildSpeed (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a2ae62e62845c92ffc7dc65c6af18358a}
\hypertarget{classrts_1_1units_1_1_unit_a932871d3f1e1279f4beb6137ec35317b}{
\index{rts::units::Unit@{rts::units::Unit}!getCost@{getCost}}
\index{getCost@{getCost}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getCost}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ rts.units.Unit.getCost (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a932871d3f1e1279f4beb6137ec35317b}
\hypertarget{classrts_1_1units_1_1_unit_a148c333285ad3bac9395819a0f5ac49c}{
\index{rts::units::Unit@{rts::units::Unit}!getCost@{getCost}}
\index{getCost@{getCost}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getCost}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getCost (
\begin{DoxyParamCaption}
\item[{int}]{resource\_\-type}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a148c333285ad3bac9395819a0f5ac49c}
\hypertarget{classrts_1_1units_1_1_unit_a8ae1eba5cf3d093583ba8c9178bf6392}{
\index{rts::units::Unit@{rts::units::Unit}!getHarvestAmount@{getHarvestAmount}}
\index{getHarvestAmount@{getHarvestAmount}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getHarvestAmount}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getHarvestAmount (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a8ae1eba5cf3d093583ba8c9178bf6392}
\hypertarget{classrts_1_1units_1_1_unit_a433c2cd844c8b13c4c4c663b35b258ee}{
\index{rts::units::Unit@{rts::units::Unit}!getHarvestSpeed@{getHarvestSpeed}}
\index{getHarvestSpeed@{getHarvestSpeed}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getHarvestSpeed}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getHarvestSpeed (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a433c2cd844c8b13c4c4c663b35b258ee}
\hypertarget{classrts_1_1units_1_1_unit_abc9559c1a14741ad337016fe12aafdf8}{
\index{rts::units::Unit@{rts::units::Unit}!getHP@{getHP}}
\index{getHP@{getHP}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getHP}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getHP (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_abc9559c1a14741ad337016fe12aafdf8}
\hypertarget{classrts_1_1units_1_1_unit_acaec6e776056737f21174d11a0987674}{
\index{rts::units::Unit@{rts::units::Unit}!getID@{getID}}
\index{getID@{getID}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getID}]{\setlength{\rightskip}{0pt plus 5cm}long rts.units.Unit.getID (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_acaec6e776056737f21174d11a0987674}
\hypertarget{classrts_1_1units_1_1_unit_a14599f15b7b0651bffc8a320fc6aaca8}{
\index{rts::units::Unit@{rts::units::Unit}!getLabel@{getLabel}}
\index{getLabel@{getLabel}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getLabel}]{\setlength{\rightskip}{0pt plus 5cm}String rts.units.Unit.getLabel (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a14599f15b7b0651bffc8a320fc6aaca8}
\hypertarget{classrts_1_1units_1_1_unit_acfc48c8bcfd637513353789ee76ff14e}{
\index{rts::units::Unit@{rts::units::Unit}!getMaxHP@{getMaxHP}}
\index{getMaxHP@{getMaxHP}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getMaxHP}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getMaxHP (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_acfc48c8bcfd637513353789ee76ff14e}
\hypertarget{classrts_1_1units_1_1_unit_a11d3028f183139348bffdd90f8c72dae}{
\index{rts::units::Unit@{rts::units::Unit}!getMoveSpeed@{getMoveSpeed}}
\index{getMoveSpeed@{getMoveSpeed}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getMoveSpeed}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getMoveSpeed (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a11d3028f183139348bffdd90f8c72dae}
\hypertarget{classrts_1_1units_1_1_unit_a241c1a38b4fd501aa2977231410bec94}{
\index{rts::units::Unit@{rts::units::Unit}!getPlayer@{getPlayer}}
\index{getPlayer@{getPlayer}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getPlayer}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getPlayer (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a241c1a38b4fd501aa2977231410bec94}
\hypertarget{classrts_1_1units_1_1_unit_a9c529a8483ffd40dd478e8759e4a99d3}{
\index{rts::units::Unit@{rts::units::Unit}!getProduce@{getProduce}}
\index{getProduce@{getProduce}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getProduce}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ rts.units.Unit.getProduce (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a9c529a8483ffd40dd478e8759e4a99d3}
\hypertarget{classrts_1_1units_1_1_unit_aa41ddb4c79b9e7c498284ebcedac7076}{
\index{rts::units::Unit@{rts::units::Unit}!getResources@{getResources}}
\index{getResources@{getResources}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getResources}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getResources (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_aa41ddb4c79b9e7c498284ebcedac7076}
\hypertarget{classrts_1_1units_1_1_unit_a6da5a902c31651ceda2aa42c63ab445c}{
\index{rts::units::Unit@{rts::units::Unit}!getResourcesType@{getResourcesType}}
\index{getResourcesType@{getResourcesType}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getResourcesType}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getResourcesType (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a6da5a902c31651ceda2aa42c63ab445c}
\hypertarget{classrts_1_1units_1_1_unit_a2b36e6f5c3f55da95b80544a8062f793}{
\index{rts::units::Unit@{rts::units::Unit}!getType@{getType}}
\index{getType@{getType}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getType}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getType (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a2b36e6f5c3f55da95b80544a8062f793}
\hypertarget{classrts_1_1units_1_1_unit_af554d22a135f4f618106975230a992dc}{
\index{rts::units::Unit@{rts::units::Unit}!getUnitUpgrades@{getUnitUpgrades}}
\index{getUnitUpgrades@{getUnitUpgrades}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getUnitUpgrades}]{\setlength{\rightskip}{0pt plus 5cm}ArrayList$<$Integer$>$ rts.units.Unit.getUnitUpgrades (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_af554d22a135f4f618106975230a992dc}
\hypertarget{classrts_1_1units_1_1_unit_a2aa7164089d7d5df304bdc297de909f9}{
\index{rts::units::Unit@{rts::units::Unit}!getVision@{getVision}}
\index{getVision@{getVision}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getVision}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getVision (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a2aa7164089d7d5df304bdc297de909f9}
\hypertarget{classrts_1_1units_1_1_unit_a3076c442cd97017417c90ee38345b3ef}{
\index{rts::units::Unit@{rts::units::Unit}!getX@{getX}}
\index{getX@{getX}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getX}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getX (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a3076c442cd97017417c90ee38345b3ef}
\hypertarget{classrts_1_1units_1_1_unit_a3a3e1c681e1c6836c641390cf4d5d8de}{
\index{rts::units::Unit@{rts::units::Unit}!getY@{getY}}
\index{getY@{getY}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{getY}]{\setlength{\rightskip}{0pt plus 5cm}int rts.units.Unit.getY (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a3a3e1c681e1c6836c641390cf4d5d8de}
\hypertarget{classrts_1_1units_1_1_unit_aaeda2c87f2ab709828f8593fc07fddbd}{
\index{rts::units::Unit@{rts::units::Unit}!hasAction@{hasAction}}
\index{hasAction@{hasAction}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{hasAction}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.hasAction (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_aaeda2c87f2ab709828f8593fc07fddbd}
Checks if the unit has an order already always returns false if this is not your unit \begin{DoxyReturn}{Returns}
bool 
\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_a8134378c251e0b7b5cb4f42c187c1287}{
\index{rts::units::Unit@{rts::units::Unit}!isBuilding@{isBuilding}}
\index{isBuilding@{isBuilding}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{isBuilding}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.isBuilding (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a8134378c251e0b7b5cb4f42c187c1287}
\hypertarget{classrts_1_1units_1_1_unit_a42f54aefc0fd60fb198a0ccf2297833f}{
\index{rts::units::Unit@{rts::units::Unit}!isFlying@{isFlying}}
\index{isFlying@{isFlying}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{isFlying}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.isFlying (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a42f54aefc0fd60fb198a0ccf2297833f}
Flying units can move over obstructed terrain. Non-\/flying units cannot. \begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_a8f4c4986ae18671c0bbf409187d53f71}{
\index{rts::units::Unit@{rts::units::Unit}!isResources@{isResources}}
\index{isResources@{isResources}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{isResources}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.isResources (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a8f4c4986ae18671c0bbf409187d53f71}
\hypertarget{classrts_1_1units_1_1_unit_a12018d814677d2c760df1ecddf498f08}{
\index{rts::units::Unit@{rts::units::Unit}!isStockpile@{isStockpile}}
\index{isStockpile@{isStockpile}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{isStockpile}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.isStockpile (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a12018d814677d2c760df1ecddf498f08}
Stockpiles are buildings that resources can be returned to \begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_aa76c7f9a2fb734436c938b566939aa7b}{
\index{rts::units::Unit@{rts::units::Unit}!isWorker@{isWorker}}
\index{isWorker@{isWorker}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{isWorker}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.isWorker (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_aa76c7f9a2fb734436c938b566939aa7b}
Workers can build buildings, harvest resources, and return resources to stockpiles \begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_a7312b3ee155cdf38be11905fc351575c}{
\index{rts::units::Unit@{rts::units::Unit}!lastActionSucceeded@{lastActionSucceeded}}
\index{lastActionSucceeded@{lastActionSucceeded}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{lastActionSucceeded}]{\setlength{\rightskip}{0pt plus 5cm}boolean rts.units.Unit.lastActionSucceeded (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a7312b3ee155cdf38be11905fc351575c}
Returns whether or not the last action executed successfully always returns false if this is not your unit \begin{DoxyReturn}{Returns}

\end{DoxyReturn}
\hypertarget{classrts_1_1units_1_1_unit_afa4ae1a79bcf87a92341a8162e593060}{
\index{rts::units::Unit@{rts::units::Unit}!seen\_\-dead@{seen\_\-dead}}
\index{seen\_\-dead@{seen\_\-dead}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{seen\_\-dead}]{\setlength{\rightskip}{0pt plus 5cm}void rts.units.Unit.seen\_\-dead (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_afa4ae1a79bcf87a92341a8162e593060}
\hypertarget{classrts_1_1units_1_1_unit_a1aa5b9fa8983b9217d2b041a4b653dcd}{
\index{rts::units::Unit@{rts::units::Unit}!setAction@{setAction}}
\index{setAction@{setAction}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{setAction}]{\setlength{\rightskip}{0pt plus 5cm}void rts.units.Unit.setAction (
\begin{DoxyParamCaption}
\item[{{\bf UnitAction}}]{act}
\end{DoxyParamCaption}
)}}
\label{classrts_1_1units_1_1_unit_a1aa5b9fa8983b9217d2b041a4b653dcd}
Orders the unit 

\subsection{Member Data Documentation}
\hypertarget{classrts_1_1units_1_1_unit_a7ea973d00bcfb63bf412a795ca996b5e}{
\index{rts::units::Unit@{rts::units::Unit}!stats@{stats}}
\index{stats@{stats}!rts::units::Unit@{rts::units::Unit}}
\subsubsection[{stats}]{\setlength{\rightskip}{0pt plus 5cm}{\bf UnitStats} {\bf rts.units.Unit.stats}\hspace{0.3cm}{\ttfamily  \mbox{[}private\mbox{]}}}}
\label{classrts_1_1units_1_1_unit_a7ea973d00bcfb63bf412a795ca996b5e}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
src/rts/units/\hyperlink{_unit_8java}{Unit.java}\end{DoxyCompactItemize}
